# Copyright 2005 Pascal Fleury
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Pascal Fleury <fleury@users.sourceforge.net>
# $Header:$

S="${WORKDIR}/${P}"
DESCRIPTION="Table of Contents for Scribus (ToC4S)"
SRC_URI="http://www.yarpen.cz/scribus-toc/${P}.tar.gz"
HOMEPAGE="http://www.yarpen.cz/scribus-toc"
LICENSE="GPL-2"
KEYWORDS="~x86"
DEPEND="=app-office/scribus-1.2.1"

inherit kde-functions
need-qt 3


src_compile() {
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"
	#emake || die
	make || die
}

src_install () {
	#make -d DESTDIR=${D} install || die
	make \
		prefix=${D}/usr \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		install || die
}
